package com.tbit.uqbike.service.business;


import com.tbit.uqbike.object.pojo.MachineBatteryModel;
import com.tbit.uqbike.object.value.LoginInfo;
import com.tbit.uqbike.object.view.ErrorDataList;

import java.util.List;

/**
 * @author chenmengran
 * @Description: 电池方案绑定
 * @date 2019\12\24 002415:24
 */
public interface MachineBatteryModelService {

    /**
     * 绑定设备
     *
     * @param
     * @param machineNOList
     */
    List<ErrorDataList> bound(LoginInfo loginInfo, Integer accountId, Integer batteryModelId, Integer secondaryBattertId, List<String> machineNOList, Integer machineGroupId);


    /**
     * 绑定设备(也可以选择车辆编号)
     *
     * @param
     * @param machineNOList
     */
    List<ErrorDataList> boundNew(LoginInfo loginInfo, Integer batteryModelId, Integer secondaryBattertId, List<String> machineNOList,int dataType);

    /**
     * 添加
     *
     * @param machineBatteryModels
     */
    void addBatch(List<MachineBatteryModel> machineBatteryModels);

    /**
     * 批量删除
     *
     * @param machineIds
     */
    void delBatch(List<Integer> machineIds);

    /**
     * 获取设备电量
     *
     * @param loginInfo
     * @param machineNO
     * @return
     */
    MachineBatteryModel getByMachineNO(LoginInfo loginInfo, String machineNO);

    /**
     * 获取设备电量
     *
     * @param loginInfo
     * @param batteryModelId
     * @return
     */
    List<MachineBatteryModel> getByBatteryModelId(LoginInfo loginInfo, Integer batteryModelId, Integer rowCount, Integer pageNO);

    /**
     * 获取总数
     *
     * @param loginInfo
     * @param batteryModelId
     * @return
     */
    Integer getTotalByBatteryModelId(LoginInfo loginInfo, Integer batteryModelId);
}
